<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/components" prefix="jca"%>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/wrappers" prefix="w"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="ext.tianma.part.finishedProduct.util.TypesUtil"%>

<%@ include file="/netmarkets/jsp/util/beginPopup.jspf"%>

<%	
	String display_value = request.getParameter("part_classify");
	String inter_value = request.getParameter("part_classify_hidden");
	request.setAttribute("display_value", display_value);
	request.setAttribute("inter_value", inter_value);

	ArrayList<String> vals = TypesUtil.getlegalValueList("cn.tianma.FinishedGood", "finishedGoodDimension");
	request.setAttribute("vals",vals);
%>

<table>
	<tr>
		<td>
			<span><b>&nbsp; 分类：</b></span>
		    <input type="text" id="part_classify" name="part_classify" readonly="readonly"
		    	   value="${display_value}"/>
			<jca:renderPropertyPanel>
				<jca:action actionName="set_classify" actionType="partManager" button="true"/>
			</jca:renderPropertyPanel>
			<input type="hidden" id="part_classify_hidden" name="part_classify_hidden"
	   			   value="${inter_value}"/>	   
	   	    <input type="hidden" id="part_classify_hidden_temp" name="part_classify_hidden_temp"
	   			   value="${inter_value}"/>   
		</td>
	</tr>
	
	<tr>
		<td>
		</td>
	</tr>
	
	<tr>
		<td>
			<span><b>&nbsp; 产品维度：</b></span>
			<w:comboBox id="finishedGoodDimension" name="finishedGoodDimension" required="true" internalValues="${vals}"  displayValues="${vals}" />
		</td>
	</tr>
</table>
	
<script language="JavaScript">
	function setDisplay(display){
		document.getElementById("part_classify").value = display;
	}
	function setInter(inter){
		document.getElementById("part_classify_hidden").value = inter;		
	}
</script>

<%@include file="/netmarkets/jsp/util/end.jspf"%>